
module Tests.TfTests where

import TableFunction
import Test.HUnit
import Test.QuickCheck

tests = TestList [TestLabel "GetValueOut1" testGetValueOut1,
                  TestLabel "GetValueOut2" testGetValueOut2]
                  

f = construct [(0.0, 1.0), (1.0, 2.0), (2.0, 3.0)]

testGetValueOut1 = TestCase (assertEqual "for minus outside" Nothing (getValue f (-1.0)))

testGetValueOut2 = TestCase (assertEqual "for minus outside" Nothing (getValue f (4.0)))